From: Brian May <bam@debian.org>
Date: Mon, 16 Dec 2019 19:29:45 +1100
Subject: fix-missing-headers

===================================================================
---
 lib/hcrypto/Makefile.am | 5 +++++
 lib/hx509/Makefile.am   | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/hcrypto/Makefile.am b/lib/hcrypto/Makefile.am
index a9c688d..e0dccd2 100644
--- a/lib/hcrypto/Makefile.am
+++ b/lib/hcrypto/Makefile.am
@@ -103,6 +103,11 @@ TESTS = $(PROGRAM_TESTS) $(SCRIPT_TESTS)
 LDADD = $(lib_LTLIBRARIES) $(LIB_roken) $(LIB_openssl_crypto)
 test_rand_LDADD = $(LDADD) -lm
 
+ALL_OBJECTS  = $(libhcrypto_la_OBJECTS)
+ALL_OBJECTS += $(test_rand_OBJECTS)
+ALL_OBJECTS += $(libhctest_la_OBJECTS)
+$(ALL_OBJECTS): | install-build-headers
+
 libhcrypto_la_SOURCES =	\
 	$(ltmsources)	\
 	aes.c		\
diff --git a/lib/hx509/Makefile.am b/lib/hx509/Makefile.am
index b21d852..f982ebc 100644
--- a/lib/hx509/Makefile.am
+++ b/lib/hx509/Makefile.am
@@ -147,8 +147,8 @@ HX509_PROTOS = $(srcdir)/hx509-protos.h $(srcdir)/hx509-private.h
 
 $(ALL_OBJECTS): $(HX509_PROTOS)
 
-$(libhx509_la_OBJECTS): $(srcdir)/hx_locl.h
-$(libhx509_la_OBJECTS): ocsp_asn1.h pkcs10_asn1.h
+$(ALL_OBJECTS): $(srcdir)/hx_locl.h
+$(ALL_OBJECTS): ocsp_asn1.h pkcs10_asn1.h
 
 $(srcdir)/hx509-protos.h: $(dist_libhx509_la_SOURCES)
 	$(heim_verbose)cd $(srcdir) && perl ../../cf/make-proto.pl -R '^(_|^C)' -E HX509_LIB -q -P comment -o hx509-protos.h $(dist_libhx509_la_SOURCES) || rm -f hx509-protos.h
